import { http } from '@/api/service/request';
import type { BaseResult, ResultTable } from '@/api/service/types';

/** 权限---根据角色id获取权限内容 */
export const fetchGetPowerListByRoleId = (data: any) => {
	return http.request<BaseResult<object>>('get', 'rolePower/noManage/getPowerListByRoleId', { params: data });
};

/** 权限---获取所有权限 */
export const fetchGetAllPowers = () => {
	return http.request<BaseResult<any>>('get', `power/getAllPowers`);
};
